/**
 * Created by xuqin on 16/4/6.
 */

app.controller('head',['$scope', '$rootScope' ,function($scope, $rootScope) {

    $scope["light"] = false;
    $scope["light2"] = false;

    $scope.list = [
        {url:"/index",name:"首页"},
        {url:"/list",name:"日历"},
        {url:"/detail/1",name:"回忆录"},
        {url:"#",name:"未完成"}
    ];

    $scope.show = function(element){
        $scope[element]=true;
    };

    $scope.hide = function(element){
        $scope[element]=false;
    };
}]);